package com.niujie.prototypemanage.exception;

import com.wf.captcha.base.Captcha;

public enum CustomizeErrorCode implements ICustomizeErrorCode {

    QUESTION_NOT_FOUND(2001, "你找到问题不在了，要不要换个试试？"),
    TARGET_PARAM_NOT_FOUND(2002, "未选中任何问题或评论进行回复"),
    NO_LOGIN(2003, "当前操作需要登录，请登陆后重试"),
    SYS_ERROR(2004, "服务冒烟了，要不然你稍后再试试！！！"),
    TYPE_PARAM_WRONG(2005, "评论类型错误或不存在"),
    COMMENT_NOT_FOUND(2006, "回复的评论不存在了，要不要换个试试？"),
    CONTENT_IS_EMPTY(2007, "输入内容不能为空"),
    READ_NOTIFICATION_FAIL(2008, "兄弟你这是读别人的信息呢？"),
    NOTIFICATION_NOT_FOUND(2009, "消息莫非是不翼而飞了？"),
    FILE_UPLOAD_FAIL(2010, "图片上传失败"),
    MAIL_SEND_FAILED(2011,"邮件上传失败"),
    COUNT_NOT_FOUNT(2011,"账号未找到"),
    PASSWORD_ERROR(2011,"密码错误"),
    Token_Not_Found(2012,"非法Token"),
    CAPCCHA_ERROR(2013,"验证码错误"),
    USER_ALREADY_EXIST(2014,"用户已经存在"),
    USER_NOT_FOUND(2014,"用户未找到"),
    FILE_NOT_FOUND(2015,"文件不能为空");

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    private Integer code;
    private String message;

    CustomizeErrorCode(Integer code, String message) {
        this.message = message;
        this.code = code;
    }
}
